<?php

class Admin_Form_Categorie extends Zend_Form
{

    public function init()
    {
        $this->setMethod('Post');
        
        $this->addElement('text', 'name', array(
        		'label'=>'nom categorie',
        		'required'=>true,
        		'filters'=>array('stringTrim', 'stripTags'),
        		'validators'=>array('notEmpty')
        ));
        
        $this->addElement('submit','submit', array(
        		'label'=>'Ajouter',
        		'ignore'=> true
        ));
        
        //Une protection anti CSRF
        $this->addElement('hash', 'CSRF', array(
        		'ignore'=> true
        ));
    }


}

